import request from '@/utils/request'
export default {

    //添加小节
    addVideo(video) {
        return request({
            url: '/edu/video/addVideo',
            method: 'post',
            data: video
          })
    },
    
    //删除小节
    deleteVideo(id) {
        return request({
            url: '/edu/video/'+id,
            method: 'delete'
          })
    },

        //根据id查询小节
        getVideo(videoId) {
            return request({
                url: '/edu/video/getVideoById/'+videoId,
                method: 'get'
              })
        },
        //修改小节
        updateChapter(video) {
            return request({
                url: '/edu/video/updateVideo',
                method: 'post',
                data: video
              })
        },
}